<div id="account-manage-view">
  <!--<div class="pageheader">-->
    <!--<h2><i class="fa fa-home"></i>账号管理</h2>-->
    <!--<div class="al-header-right">-->
      <!--<button type="button" class="btn btn-primary" ng-click="newData()">新建账号</button>-->
    <!--</div>-->
  <!--</div>-->
  <div class="page">
    <div class="al-list-container">
      <form class="form-horizontal al-search-container" role="form">
        <div class="form-group">
          <label class="col-sm-1 control-label">账号</label>
          <div class="col-sm-3">
            <input class="form-control" ng-model="search.name" type="text" placeholder=""/>
          </div>
          <label class="col-sm-1 control-label">状态</label>
          <div class="col-sm-3">
            <nobr>
              <label class="ui-radio">
                <input name="status" ng-value="true" type="radio" ng-model="search.enabled">
                <span>启用</span>
              </label>
            </nobr>
            <nobr>
              <label class="ui-radio">
                <input name="status" ng-value="false" type="radio" ng-model="search.enabled">
                <span>禁用</span>
              </label>
            </nobr>
          </div>
          <div class="col-sm-1">
            <button type="button" ng-click="queryData()" class="btn btn-success al-float-right">查询</button>
          </div>
          <div class="col-sm-1">
            <button type="button" ng-click="resetSearch()" class="btn btn-default">重置</button>
          </div>
          <div class="col-sm-1">
          </div>
          <div class="col-sm-1">
            <button type="button" class="btn btn-primary" ng-click="newData()">新建</button>
          </div>
        </div>
      </form>
      <table ng-table="tableParams"
             class="table  table-bordered table-striped table-condensed al-table-container">
        <thead>
        <tr>
          <td>账号</td>
          <td>名称</td>
          <td>性别</td>
          <td>邮箱</td>
          <td>手机</td>
          <!--for qgy start-->
          <td>门店</td>
          <!--for qgy end-->
          <td>状态</td>
          <td>操作</td>
        </tr>
        </thead>
        <tbody>
          <tr ng-repeat="item in $data">
            <td>{{item.username}}</td>
            <td>{{item.nickname}}</td>
            <td>{{item.sex|constantTransfer:sexList}}</td>
            <td>{{item.email}}</td>
            <td>{{item.phone}}</td>
            <!--for qgy start-->
            <td>{{apartmentList.length>0?(item.store|constantTransfer:apartmentList:'id'):''}}</td>
            <!--for qgy end-->
            <td>{{item.enabled|constantTransfer:enabledList}}</td>
            <td>
              <button class="btn btn-warning btn-sm" ng-click="editData(item)">编辑</button>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>
